<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
	<title>{$pageTitle}</title>
	
	<!-- head --><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	{include file="head.tpl"}
	
</head>

<body>

<!-- body_js -->
{include file="body_js.tpl"}

	<div id="wrap">
		
		<!-- header -->
		{include file="header.tpl"}
		
		<div id="body">
			
			<div id="body_left">
			
				<!-- breadcrumbs -->
				{include file="breadcrumbs.tpl"}
			
				<h1> {l s='Formulario de contacto'} </h1>
					
				{if $error_msg ne ""}
					<div class="error" id="notice">
						{$error_msg}
					</div>
				{/if}
				
				{if $form_sent eq "yes" and $error_msg eq ""}
					<div class="notice" id="notice">
						<p> {l s='Tu mensaje ha sido enviado, le responderemos tan pronto como sea posible!'} </p>
					</div>
					<p>
						<input type="button" value="Continua" onclick="javascript:window.location='{$smarty.const.BASE_URL}'" />
					</p>
				{else}
					<form action="{$smarty.const.BASE_URL}contact.php" method="post">
					
					<p class="form_item">
					<span class="label">{l s='Nombre'}</span>
					<input name="form_sent" type="hidden" value="yes" />
					<input name="fullname" type="text" value="{$fullname}" class="verywide" />
					</p>
					
					<p class="form_item">
					<span class="label">E-mail</span>
					<input name="email" type="text" value="{$email}" class="verywide" />
					</p>
					
					<p class="form_item">
					<span class="label">{l s='Título'}</span>
					<input name="subject" type="text" value="{$subject}" class="verywide" />
					</p>
					
					
					<p class="form_item">
					<span class="label">{l s='Mensaje'}</span>
					<textarea name="message" rows="10" cols="55" class="verywide">{$message}</textarea>
					</p>

                                        {if $session_username eq ""}
                                        <p class="form_item">
					<span class="label">{l s='Código de verificación'}</span>
                                        <img id="captcha" src="/inc/securimage/securimage_show.php" alt="CAPTCHA Image" style="border: 1px solid #ccc;" />
                                        <a href="#" onclick="document.getElementById('captcha').src = '/inc/securimage/securimage_show.php?' + Math.random(); return false">{l s='Recargar imagen'}</a>
                                        <br />
					<input name="captcha_code" type="text" value="" />
					</p>
                                        {/if}

					<p class="form_item">
					<input type="submit" value="{l s='Enviar'}" />
					</p>
					
					</form>
				{/if}
			</div>
			<div id="body_right">
			  <!-- body_right -->
				{include file="body_right.tpl"}
			</div>
			<div class="clearer"></div>
		</div>
	</div>
	<!-- footer -->
	{include file="footer.tpl"}
</body>
</html>
